package com.xiaomi.pojo;

import java.io.Serializable;

//收藏表
public class Mycollection implements Serializable {

    private int mycollid;//收藏id
    private int deid;//商品id
    private int uid;//用户表id


    private String comname;//商品名称
    private int comstate;//商品状态 1上架 2下架
    private int cid;//商品id
    private String picture;//商品图片
    private String depraice;//商品价格
    private String config;//商品配置规格


    public String getComname() {
        return comname;
    }

    public void setComname(String comname) {
        this.comname = comname;
    }

    public int getComstate() {
        return comstate;
    }

    public void setComstate(int comstate) {
        this.comstate = comstate;
    }

    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getPicture() {
        String[] path = picture.split(",");
        return path[0];
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getDepraice() {
        return depraice;
    }

    public void setDepraice(String depraice) {
        this.depraice = depraice;
    }

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public int getMycollid() {
        return mycollid;
    }

    public void setMycollid(int mycollid) {
        this.mycollid = mycollid;
    }

    public int getDeid() {
        return deid;
    }

    public void setDeid(int deid) {
        this.deid = deid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "Mycollection{" +
                "mycollid=" + mycollid +
                ", deid=" + deid +
                ", uid=" + uid +
                ", comname='" + comname + '\'' +
                ", comstate=" + comstate +
                ", cid=" + cid +
                ", picture='" + picture + '\'' +
                ", depraice='" + depraice + '\'' +
                ", config='" + config + '\'' +
                '}';
    }
}
